var EnumUtil = function () {
};

EnumUtil.prototype = {
    occupyImage: function (value) {
        return '<img src="/images/wow/occupy/ter' + value + '.gif" title="" />';
    },
    occupy: function (value) {
        switch (value) {
            case 0:
                return '<span>争夺中</span>';
            case 1:
                return '<span style="color: blue;">联盟</span>';
            case 2:
                return '<span style="color: red;">部落</span>';
            default:
                return "";
        }
    },
    job: function (value) {
        switch (value) {
            case 1:
                return '<span>战士</span>';
            case 2:
                return '<span>法师</span>';
            case 3:
                return '<span>猎人</span>';
            case 4:
                return '<span>牧师</span>';
            case 5:
                return '<span>盗贼</span>';
            case 6:
                return '<span>德鲁伊</span>';
            case 7:
                return '<span>术士</span>';
            case 8:
                return '<span>萨满</span>';
            case 9:
                return '<span>圣骑士</span>';
            default:
                return '';
        }
    },
    faction: function (value) {
        switch (value) {
            case 1:
                return '<span>联盟</span>';
            case 2:
                return '<span>部落</span>';
            case 3:
                return '<span>生物</span>';
            case 4:
                return '<span>蜘蛛</span>';
            case 5:
                return '<span>狼人</span>';
            case 6:
                return '<span>食腐鸟类</span>';
            case 7:
                return '怪物';
            default:
                return '';
        }
    },
    mobClass: function (value) {
        switch (value) {
            case 0:
                return '<span>未指定</span>';
            case 1:
                return '<span>野兽</span>';
            case 2:
                return '<span>小动物</span>';
            case 3:
                return '<span>恶魔</span>';
            case 4:
                return '<span>龙类</span>';
            case 5:
                return '<span>元素生物</span>';
            case 6:
                return '<span>巨人</span>';
            case 7:
                return '<span>人型生物</span>';
            case 8:
                return '<span>机械</span>';
            case 9:
                return '<span>亡灵</span>';
            default:
                return '';
        }
    },
    mobType: function (value) {
        switch (value) {
            case 1:
                return '<span>普通</span>';
            case 2:
                return '<span>稀有</span>';
            case 3:
                return '<span>精英</span>';
            case 4:
                return '<span>世界首领</span>';
            default:
                return '';
        }
    }
};

window.enumUtil = new EnumUtil();

